package com.cn.activitiNSV;


import com.cn.activitiNSV.controller.activiti.explorer.JsonpCallbackFilter;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;


@SpringBootApplication
@ComponentScan({"org.activiti.rest.diagram", "com.cn.activitiNSV"})
@EnableAutoConfiguration(exclude = {
        org.activiti.spring.boot.SecurityAutoConfiguration.class
})
@MapperScan("com.cn.activitiNSV.mapper")
public class ActivitiNSStart {


    public static void main(String[] args) {
        SpringApplication.run(ActivitiNSStart.class, args);
    }

    @Bean
    public JsonpCallbackFilter filter() {
        return new JsonpCallbackFilter();
    }

}
